#ifndef __STDFIFO_H_
#define __STDFIFO_H_
#include<string>



class StdFIFO
{
public:
    enum class mode
    {
    ReadOnly,
    WriteOnly
    };


    StdFIFO(const std::string& filepath,mode m);
    ~StdFIFO();
    std::string Read(size_t size);
    void Write(const std::string &a);
private:
    int fd;
    mode m;
    std::string FilePath;
};

#endif